package com.hnust.service;

import com.hnust.domain.record.*;

import java.util.List;
import java.util.Map;

/**
 * 答题管理模块的接口
 * @author 42
 * @date 2020/10/29
 */
public interface SubjectService {
    /**
     *  查找某个课程的所有题目
     * @param course_id 课程id
     * @param token 令牌
     * @param id 教师id
     * @return subjectInfo 题目信息
     */
    public List<SubjectDataRecord> getQuestionList(String course_id, String token, String id,int currentPage,int rows) throws Exception;
    public List<CourseData> getCourseData(String id, String token);
    public List<SubjectDataRecord> getCourseSubByCon(String course_id,String keyword, String token,String id,int currentPage,int rows);
    public String delCourseSub(String subject_id,String token,String id) throws Exception;
    public List<QuestionTypeRecord> questionType(String token, String id, String course_id);
    public List<CourseTargetRecord> getCourseTargetList(String course_id,String token,String id);
    public String updateSubInfo(SubjectDataRecord subjectData, String token, String id);
    public String addSub(List<SubjectDataRecord> subjectDataList, String token, String id);
    public List<CourseChapter> getCourseChapterList(String course_id,String token,String id);
}
